package com.nbicc.news.po;

import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

@ApiModel(value="新闻内容",description = "与新闻描述一一对应，存储新闻的具体内容(长文本)")
@Data
public class NewsContent {

    @ApiModelProperty(value="与新闻描述id一一对应")
    @JsonSerialize(using= ToStringSerializer.class)
    private long id;
    @ApiModelProperty(value="新闻内容")
    private String content;

}
